import styled from "styled-components";

// 调查全局样式
export const InvestigationContent = styled.div`
  width: 1400px;
  height: 100%;
  margin: 0 auto;

  .header-button {
    width: 220px;
  }

  .release {
    background: #0d0d0d;
    color: #fff !important;
    border: 0;

    &:hover {
      background: rgba(0, 0, 0, 0.8) !important;
    }
  }

  .investigation-header {
    height: 50px;
    line-height: 50px;
    border-bottom: 1px solid #efefef;
    margin-bottom: 10px;
    font-size: 20px;
  }

  .investigation-section {
    height: calc(100% - 60px);
  }

  .investigation-panel {
    width: 300px;
    max-height: 100%;
    overflow-y: auto;
    box-sizing: border-box;
    padding: 15px;
    float: left;
    background: #fff;
    border-radius: 10px;
  }

  .investigation-editor {
    width: 1060px;
    max-height: 100%;
    overflow-y: auto;
    box-sizing: border-box;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #efefef;
    background: #fff;
    float: right;
  }

  .editor-top {
    padding: 15px;
    border-bottom: 1px solid #efefef;
    cursor: pointer;
  }

  .investigation-title {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
  }

  .investigation-intro {
    margin-top: 10px;
  }

  .editor-empty {
    padding: 30px;
  }

  .survey-paging {
    font-size: 16px;
    padding: 20px 10px 10px 10px;

    .paging-menu {
      text-align: left;
      height: 30px;
      line-height: 30px;
    }
    .paging-insert {
      color: #40a9ff;
      cursor: pointer;
      text-decoration: underline;
      display: none;
    }
    &:hover .paging-insert {
      display: block;
    }
  }
`;

// 控制台样式
export const ControlContent = styled.div`
  .ant-btn {
    margin-bottom: 10px;

    &:last-child {
      margin-bottom: 0;
    }
  }
  .control-title {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .control-item {
    width: 45%;
    padding: 5px;
    text-align: center;
    border: 1px solid #e4e4e4;
    border-radius: 5px;
    margin-bottom: 10px;
    cursor: pointer;

    &:hover {
      border: 1px solid #1890ff;
      color: #1890ff;
    }
    .control-text {
      margin-left: 5px;
    }
  }
`;

//上传文件
export const UploadBox = styled.div`
  .upload-file {
    width: 100%;
    border: 1px solid #cccccc;
    border-radius: 5px;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    .ant-btn {
      margin-right: 10px;
    }
  }

  .upload-error {
    line-height: 30px;
    font-size: 16px;
    color: red;
  }

  .upload-input {
    width: 100%;
    height: 100%;
    opacity: 0;
    position: absolute;
    left: 0;
    top: 0;
    cursor: pointer;
  }
`;

// 修改标题
export const ModalTitle = styled.div`
  padding-top: 30px;
  .editor-title {
    margin-bottom: 30px;
    .title {
      width: 50px;
      line-height: 32px;
    }
  }

  .title-rich {
    width: 100%;
  }
`;

// 题目项
export const SurveyItemContent = styled.div`
  font-size: 16px;
  padding: 10px;
  border-bottom: 1px solid #efefef;
  .show-concern {
    color: #808084;
    font-size: 14px;
    margin-top: 5px;
  }

  .survey-menu {
    height: 30px;
    line-height: 30px;
  }

  .survey-menu-box {
    display: none;

    .menu-buttom {
      float: right;

      .ant-btn {
        margin-left: 15px;
      }
    }
  }

  &:hover .survey-menu-box {
    display: block;
  }
  .required {
    position: relative;

    &::before {
      content: "* ";
      color: red;
      margin-left: -10px;
    }
  }

  .survey-title {
    margin-bottom: 10px;
  }

  .survey-insert {
    color: #40a9ff;
    cursor: pointer;
    text-decoration: underline;
  }

  .grid .ant-checkbox-group,
  .grid .ant-radio-group {
    width: 100%;
  }

  .item-option {
    width: 100%;
    margin: 0;
    line-height: 40px;
    font-size: 16px;
    padding: 0 10px;

    &:hover {
      background: #f9f9f9;
    }
  }

  .item-logic {
    color: #efa030;
    font-size: 14px;
  }

  .item-editor {
    padding: 15px;
    border: 1px solid #efefef;
    margin-top: 15px;
    border-radius: 5px;

    .editor-title {
      .title {
        padding-bottom: 10px;
      }
      .survey-hide {
        color: #a6a6a6;
        cursor: pointer;
      }
    }

    .ant-table-cell {
      padding: 10px;
    }

    .option-icon {
      padding: 0 10px;
      cursor: pointer;
    }

    .editor-type {
      margin: 10px 0;

      .editor-option {
        font-size: 16px;
      }
    }

    .option-tbody-top {
      background: #e8e8e8;
    }
  }

  .score-option {
    padding: 10px;
  }

  .logic-set {
    background: #e8e8e8;
    padding: 10px;
    margin-bottom: 15px;

    a {
      margin: 0 15px;
      cursor: pointer;
      color: #1677ff;
    }
  }

  .slider-option {
    margin-bottom: 10px;

    .ant-input {
      margin-top: 10px;
      margin-right: 10px;
    }
  }
`;

//矩阵编辑器内容
export const MatrixEditorContent = styled.div`
  .matrix-editor-table {
    width: 100%;
    text-align: center;

    th {
      font-weight: normal;
    }

    .matrix-first {
      width: 200px;
    }
  }
`;

//向前关联样式
export const FrontContent = styled.div`
  font-size: 16px;
  max-height: 400px;
  overflow-y: auto;

  .front-text {
    width: 100px;
    font-size: 16px;
  }
`;

//关联选项
export const ConcernSelectContent = styled.div`
  .front-list {
    margin-top: 15px;

    .front-item {
      margin-bottom: 15px;
    }
  }

  .front-text {
    width: 100px;
    font-size: 16px;
  }

  .front-search {
    width: calc(100% - 100px);

    > span {
      color: #999999;
      margin-left: 20px;
      cursor: pointer;

      &:hover {
        color: #333333;
      }
    }
  }

  .ant-checkbox-group {
    width: 100%;
  }

  .front-option {
    margin-left: 100px;

    .front-checkbox {
      width: 100%;
      margin: 0;
      font-size: 16px;
      padding: 0 10px;

      &:hover {
        background: #f9f9f9;
      }
    }
  }
`;

//选项关联
export const OptionContent = styled.div`
  font-size: 16px;
  max-height: 400px;
  overflow-y: auto;
  .option-condition {
    text-align: left;
    .option-control {
      width: 480px;
    }
  }
  .option-button {
    margin-left: 100px;
  }
`;
